package me.zhengjie.minbearwcs.dao.stock.inf;

import me.zhengjie.minbearwcs.entity.PO.wcs.stock.MaterialStock;

import java.security.SecureRandom;
import java.time.LocalDateTime;
import java.util.List;

public interface MaterialStockDao {
    boolean insert(MaterialStock materialStock);

    boolean updateBatchCodeAndInboundDateByPallet(String pallet, String batchCode, LocalDateTime inboundTime);

    String selectMaterialCodeByPallet(String palletCode);

    String selectProductionLineByPallet(String palletCode);

    boolean deleteByPallet(String palletCode);

    List<MaterialStock> selectByPalletCode(String palletCode);

    MaterialStock selectBySmallBoxCode(String smallBoxCode);

    List<MaterialStock> selectByMidiumBoxCode(String mediumBoxCode);

    boolean updatePalletCodeBySmallBoxCode(String smallBoxCode,String palletCode);

    boolean updatePalletCodeByMidiumBoxCode(String mediumBoxCode,String palletCode);

    boolean updateMidiumBoxCodeBySmallBoxCode(String smallBoxCode,String mediumBoxCode);
}
